using System;
using System.Collections;
using System.Text;

namespace Deepcode.Flux.Core.Systems.UI.Menus
{
	/// <summary>
	/// Represents a single menu group with it's child IMenuEntry list.
	/// </summary>
	public class MenuGroup
	{
		private string _ID = "";
		private string _Title = "";
		private ArrayList _options = new ArrayList();

		public string Title { get { return _Title; } }
		public string ID { get { return _ID; } }

		public IMenuEntry[] Options
		{
			get
			{
				return _options.ToArray(typeof(IMenuEntry)) as IMenuEntry[];
			}
		}

		public MenuGroup(string title, string id, ArrayList menuOptions)
		{
			_Title = title;
			_ID = id;
			_options = menuOptions;
		}
	}
}
